package cn.mw.cmdb.entity.FinanceReport;


import cn.mw.cmdb.entity.PropertyTypeString;
import cn.mw.components.mongodb.anno.AutoId;
import cn.mw.components.mongodb.anno.CMDBProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Data
@Document("mw_cmdbmd_finance_report_history_info")
@Schema(description = "金融元上报历史")
public class FinanceReportHistoryInfo {

    @CMDBProperty(searchType = PropertyTypeString.ID, searchPrefix = "_")
    @AutoId
    @Schema(description = "id")
    private String id;

    @Schema(description = "上报时间")
    @CMDBProperty(searchType = PropertyTypeString.ID)
    private String reportDate;

    @Schema(description = "上报人")
    @CMDBProperty(searchType = PropertyTypeString.ID)
    private String reportBy;

    @Schema(description = "批次ID")
    @CMDBProperty(searchType = PropertyTypeString.ID, keywordSearch = true)
    private String branchId;

    @CMDBProperty(searchType = PropertyTypeString.ID)
    @Schema(description = "金融机构编码")
    private String facilityOwnerAgency;

    @Schema(description = "批次ID")
    @CMDBProperty
    private List<String> instanceIDList;

    @Schema(description = "上报通道")
    @CMDBProperty(searchType = PropertyTypeString.ID)
    private Integer channel;

    @Schema(description = "上报状态")
    @CMDBProperty
    private String currentCode;

    @Schema(description = "上报状态")
    @CMDBProperty(searchType = PropertyTypeString.ID, keywordSearch = true)
    private String reportStatus;

    @Schema(description = "上报消息")
    @CMDBProperty
    private String msg;

    @Schema(description = "上报完成时间")
    @CMDBProperty(searchType = PropertyTypeString.ID)
    private String reportCompleteDate;
}
